package com.vhall.component.entity.reward.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author lsl
 * @since 2021/7/12
 */
@Data
public class RewardRecordsListReqVO implements Serializable {

    private Integer offset;

    private Integer limit;

    @ParamName("sort_type")
    @Pattern(regexp = "(DESC)|(ASC)|(desc)|(asc)", message = "sort_type格式有误，只能为desc或者asc,忽略大小写")
    private String sortType;

    @ParamName("receiver_id")
    private String receiverId;

    @ParamName("rewarder_id")
    private String rewarderId;

    @ParamName("trade_no")
    private String tradeNo;

    @ParamName("pay_status")
    @Range(min = 0, max = 2, message = "参数异常")
    private String payStatus;

    @ParamName("room_id")
    @NotBlank(message = "roomId参数错误")
    private String roomId;

}
